package com.chhuang.email.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description 发送到邮件的验证码
 * @Author Darren Huang
 * @Date 2022-12-23 14:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmailCaptcha {
    private String email;
    private String code;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
